gdksurface: Do not consider GDK_TOUCH_END/CANCEL as popup-dismiss worthy
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 18 Nov 2022 14:02:22 +0000 (15:02 +0100)
committerSimon McVittie <smcv@debian.org>
Fri, 18 Nov 2022 22:12:24 +0000 (22:12 +0000)
commit7b253d27c8d44fe1fb9c09e977cd47e6be2f5c5f
treeccf3b4eb72f63278a88ebda14a2e27f868f20faa
parentf0098ef73f8725f594460b3ab8e14d2d7921a371
gdksurface: Do not consider GDK_TOUCH_END/CANCEL as popup-dismiss worthy

GDK_TOUCH_END deserves the same treatment than GDK_BUTTON_RELEASE, since it's
subject to the same circumstances (popping up a menu on long press would be
immediately dismissed on release if we handled them there). Ideally, we would
want to match releases that we obtained a press for while grabbed, but as
the popup is also dismissed on GDK_BUTTON_PRESS/GDK_TOUCH_BEGIN, there's no
use for this tracking.

And GDK_TOUCH_CANCEL sounds weird as a reason to dismiss popups, just like
crossing events would.

(cherry-picked from commit 2ff4c77c5500110e2b387a8764ab19a92045ff4e)

Related: https://gitlab.gnome.org/GNOME/mutter/-/issues/2512
Origin: upstream, 4.8.3, commit:cc5ba83ebae31b20d8ac53fe1a32685b252a100d

Gbp-Pq: Name gdksurface-Do-not-consider-GDK_TOUCH_END-CANCEL-as-popup-.patch
gdk/gdksurface.c